#include "Shop.h"
#include "SIResurrection.h"

void Shop::addMoney( int i = 1 ) {
    money += i;
}

bool Shop::spendMoney( int i ) {
    if( money - i >= 0 ) {
        money -= i;
        return true;
    }else return false;
}

void Shop::initialize() {
    items[0] = new SIResurrection( this, 50, 50 );
}

ShopItem* Shop::getItem( int i ) const {
    if( i < SIZE && i >= 0 ) return items[i];
    else return 0;
}
